package com.example.juc.threadPool.futureTask;

import java.util.concurrent.TimeUnit;

public class Test111 {

    public static  Integer method1(Integer i){
//        if(i == 2){
//            int n = 10/0;
//        }
        try {
            TimeUnit.SECONDS.sleep(1);
            return i*i;
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
        return 0;
    }

    public static Integer method2(Integer i){
        try {
            TimeUnit.SECONDS.sleep(1);
            return i*i;
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
        return 0;
    }

    public static Integer method3(Integer i){
        try {
            TimeUnit.SECONDS.sleep(1);
            return i*i;
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
        return 0;
    }
}
